import Cookie from 'js-cookie'

export default {
    setToken(token){
        window.localStorage.setItem('jwt_token',token);
    },
    getToken(){
        return window.localStorage.getItem('jwt_token');
    },
    removeToken(){
        window.localStorage.removeItem('jwt_token')
    },
    setRefreshToken(refreshToken){
        Cookie.set('refresh',refreshToken)
    },
    removeRefreshToken(){
        Cookie.remove('refresh')
    },
}